include_rules = [
  "+ash/constants",
  "+mojo/public",
  "+third_party/cld_3",
  "+third_party/iaccessible2",
  "+third_party/skia",
  "+services/service_manager/public/cpp",
  "+ui/aura",
  "+ui/base",
  "+ui/base/l10n",
  "+ui/base/win",
  "+ui/gfx",
  "+ui/display",
  "+ui/strings/grit/ax_strings.h",

  # Don't allow dependencies from ui/accessibility on
  # ui/accessibility/platform.
  #
  # The code in ui/accessibility should be safe to include from any process,
  # on any platform. In comparison, ui/accessibility/platform is only meant
  # to be used in the browser process on platforms with a native
  # accessibility API.
  "-ui/accessibility/platform",
]

specific_include_rules = {
  "run_all_unittests.cc": [
    "+mojo/core/embedder",
  ],
  "ax_assistant_util.h": [
    "+ui/accessibility/mojom",
  ],

  # Normally we shouldn't depend on ui/accessibility/platform, but this
  # is okay because it's just constants.
  "ax_assistant_structure.cc": [
    "+ui/accessibility/platform/ax_android_constants.h",
  ],

  # Normally we shouldn't depend on ui/accessibility/platform,
  # but it's harmless for this particular test, and it's probably
  # better to keep this test next to the code it tests.
  "ax_range_unittest.cc": [
    "+ui/accessibility/platform",
  ],
  "ax_tree.cc": [
    "+components/crash/core/common/crash_key.h",
  ],
}
